class CreateArticles < ActiveRecord::Migration
  def self.up
    create_table :articles do |t|
	 t.string :title
	 t.text :body
	 t.datetime :start_publishing
	 t.datetime :finish_publishing
	 t.string :alias
	 t.integer :status_id
	 t.integer :access_level_id
	 t.integer :user_id
	 t.integer :event_id

      t.timestamps
    end
  end

  def self.down
    drop_table :articles
  end
end
